package com.xhh.adjust.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhh.model.adjust.dtos.AddAdjustDto;
import com.xhh.model.adjust.dtos.AdjustPageDto;
import com.xhh.model.adjust.dtos.AdjustUpdateDto;
import com.xhh.model.adjust.dtos.GetAdjustDto;
import com.xhh.model.adjust.pojos.Adjustment;
import com.xhh.model.common.dtos.ResponseResult;

public interface AdjustService extends IService<Adjustment> {

    /**
     * 新增缺额信息
     * @param addAdjustDto
     * @return
     */
    ResponseResult addAdjustment(AddAdjustDto addAdjustDto);

    /**
     * 分页查询缺额信息
     * @param dto
     * @return
     */
    ResponseResult getAdjustmentByPage(AdjustPageDto dto);

    /**
     * 根据id更新缺额信息
     * @param dto
     * @return
     */
    ResponseResult updateAdjustment(AdjustUpdateDto dto);

    /**
     * 根据单位编码、院系编码、专业编码查询缺额信息
     * @param dto
     * @return
     */
    ResponseResult getAdjustByCode(GetAdjustDto dto);
}
